package com.wutuo.classroom.api;

import com.wutuo.classroom.api.request.LearningClassroomRequest;
import com.wutuo.classroom.api.request.ListLearningClassroomRequest;
import com.wutuo.classroom.api.response.LearningClassroomResponse;
import com.wutuo.classroom.provider.domain.LearningClassroom;

import java.util.List;

/**
 * Created by Singer_YDW on 2016/11/9.
 */
public interface LearningClassroomAPIService {

    public void addorUpdate(LearningClassroomRequest record);

    public void del(Long id);

    public List<LearningClassroomResponse> lisForPage(ListLearningClassroomRequest request);

    public List<LearningClassroomResponse> list(LearningClassroomRequest request);

    /**
     * 根据登录单位获取当前可以登录的信息
     *
     * @param userId
     * @param request
     * @return List<LearningClassroomResponse>
     * @author lvh 2016年4月9日 上午11:08:06</br>
     */
    public List<LearningClassroomResponse> listLearningClassRoomByUserId(String org, Long userId,
        ListLearningClassroomRequest request);

    LearningClassroom find(Long id);
}
